<body>
  <div style="margin-bottom:10px;">
    Wprowdź kod: 
    <input type="password" id="pf1"
    />
    <input type="button" name="przycisk1"
           id="btn1" onclick="btn1Click();"
           value="Wejdź"
    />
  </div>
  <div id="div2"></div>
</body>
